package display 
{
	import controller.Controller;
	import display.base.ModuleBase;
	import events.DisplayEvent;
	import events.UpdateEvent;
	import fl.video.QueuedCommand;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	/**
	 * ...
	 * @author Henrik Riise Hansen
	 */
	public class DisplayMediaPlayer extends ModuleBase
	{
		private static var moduleName:String = 'Player';
		
		private var sh:Shell;
		private var player:Sprite;
		
		//sprites
		
		private var playerPic:BgPicture;
		
		public function DisplayMediaPlayer(ctr:Controller,_sh:Shell,bg:DisplayApplicationBackground) 
		{
			super(_sh,moduleName, ctr,0,100,480,272,bg);
			
			build();
		}
		
		private function build():void
		{
			playerPic = new BgPicture;
			playerPic.x = 5;
			playerPic.y = 5;
			playerPic.scaleX = .5;
			playerPic.scaleY = .5;
			
			holder.addChild(playerPic);
		}
		
		override public function onMouseMove(e:MouseEvent):void
		{
			playerPic.x = bg.x + 5;
			playerPic.y = bg.y + 5;
		}
	}
}